export interface NavigationMenuRoute {
    route: string
}

export interface NavigationMenuType extends NavigationMenuRoute {
    children?: NavigationMenuRoute[],
}

// 获取第一个页面路由name
export const getAsideFirstRoute = (row: NavigationMenuType): NavigationMenuType => {
    return row.children && row.children.length ? getAsideFirstRoute(row.children[0]) : row;
}